class Student:
    def __init__(self,name,age):
        self.name = name
        self.age = age


stu1 = Student('张三',18)
print(stu1.name,stu1.age)

stu2 = Student("20","李四")
print(stu2.name,stu2.age)

# class Student:
#     def __init__(self):
#         print("对象创建后执行这个方法")
#
# s = Student()